package com.yjc.drygoods.order.feign;

import com.yjc.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author yjc
 * @create 2022-10-03 15:14
 */
@FeignClient(value = "drygoods-third-party")
public interface ThirdPartyFeignService {
    @ResponseBody
    @PostMapping(path = "/fileUpload", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
    R upload(@RequestPart("fileName") MultipartFile[] files);
}
